import Vue from 'vue'

import App from './App.vue'
import router from './router'
import 'lib-flexible'
import vant from 'vant'
import 'vant/lib/index.css'
import axios from 'axios'

import store from './store'
import '../public/iconfont/iconfont.css'
import '../public/JS_SDK'
console.dir(window.qc);


axios.defaults.baseURL = 'http://www.520gongfu.com:9527/api/'

axios.interceptors.request.use(function(config) {
    if (store.state.token) {
        config.headers['Authorization'] = store.state.token
    }

    return config
}, function(error) {
    return Promise.reject(error);
})
Vue.use(vant);

Vue.prototype.$axios = axios
    // Vue.use(libFlexble)
Vue.config.productionTip = false



new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')